﻿using System.Data.Objects;
using Wamm.AbstractDataAccess;
using Wamm.Model.Abstract;

namespace Wamm.EntityFrameworkImplementation {
    public class RepositoryFactory : IRepositoryFactory {

        public IRepository<T> Create<T>(object context) where T : class, IEntity {
            return new Repository<T>((WammCatalog)context);
        }
    }
}
